package idv.loveloser.dao;

/**
 * AbstractMdlExternalTokens entity provides the base persistence definition of
 * the MdlExternalTokens entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractMdlExternalTokens implements java.io.Serializable {

	// Fields

	private Long id;
	private String token;
	private Short tokentype;
	private Long userid;
	private Long externalserviceid;
	private String sid;
	private Long contextid;
	private Long creatorid;
	private String iprestriction;
	private Long validuntil;
	private Long timecreated;
	private Long lastaccess;

	// Constructors

	/** default constructor */
	public AbstractMdlExternalTokens() {
	}

	/** minimal constructor */
	public AbstractMdlExternalTokens(String token, Short tokentype,
			Long userid, Long externalserviceid, Long contextid,
			Long creatorid, Long timecreated) {
		this.token = token;
		this.tokentype = tokentype;
		this.userid = userid;
		this.externalserviceid = externalserviceid;
		this.contextid = contextid;
		this.creatorid = creatorid;
		this.timecreated = timecreated;
	}

	/** full constructor */
	public AbstractMdlExternalTokens(String token, Short tokentype,
			Long userid, Long externalserviceid, String sid, Long contextid,
			Long creatorid, String iprestriction, Long validuntil,
			Long timecreated, Long lastaccess) {
		this.token = token;
		this.tokentype = tokentype;
		this.userid = userid;
		this.externalserviceid = externalserviceid;
		this.sid = sid;
		this.contextid = contextid;
		this.creatorid = creatorid;
		this.iprestriction = iprestriction;
		this.validuntil = validuntil;
		this.timecreated = timecreated;
		this.lastaccess = lastaccess;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getToken() {
		return this.token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Short getTokentype() {
		return this.tokentype;
	}

	public void setTokentype(Short tokentype) {
		this.tokentype = tokentype;
	}

	public Long getUserid() {
		return this.userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Long getExternalserviceid() {
		return this.externalserviceid;
	}

	public void setExternalserviceid(Long externalserviceid) {
		this.externalserviceid = externalserviceid;
	}

	public String getSid() {
		return this.sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public Long getContextid() {
		return this.contextid;
	}

	public void setContextid(Long contextid) {
		this.contextid = contextid;
	}

	public Long getCreatorid() {
		return this.creatorid;
	}

	public void setCreatorid(Long creatorid) {
		this.creatorid = creatorid;
	}

	public String getIprestriction() {
		return this.iprestriction;
	}

	public void setIprestriction(String iprestriction) {
		this.iprestriction = iprestriction;
	}

	public Long getValiduntil() {
		return this.validuntil;
	}

	public void setValiduntil(Long validuntil) {
		this.validuntil = validuntil;
	}

	public Long getTimecreated() {
		return this.timecreated;
	}

	public void setTimecreated(Long timecreated) {
		this.timecreated = timecreated;
	}

	public Long getLastaccess() {
		return this.lastaccess;
	}

	public void setLastaccess(Long lastaccess) {
		this.lastaccess = lastaccess;
	}

}